package domain

const (
	AvatarAssetsFieldAssets = "Assets"
)

type AvatarAssets struct {
	ID       int64  `json:"id"`
	AssetsID int64  `json:"-" gorm:"not null;"`
	Weight   int64  `json:"weight" gorm:"not null;default:1"`
	Assets   Assets `json:"assets" gorm:"foreignKey:AssetsID;constraint:OnUpdate:CASCADE;OnDelete:CASCADE"`
}

type AvatarAssetsDTO struct {
	ID     int64     `json:"id"`
	Weight int64     `json:"weight"`
	Assets AssetsDTO `json:"assets"`
}
